home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / OpenTransport / Interfaces / CIncludes / miioccom.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-24  |  1.5 KB  |  48 lines  |  [TEXT/MPS ]

  1. /** Copyright (c) 1993  Mentat Inc.
  2.  ** miioccom.h 4.1, last change 31 Aug 1993
  3.  **/
  4.  
  5.  
  6. #ifndef _MIIOCCOM_
  7. #define _MIIOCCOM_
  8.  
  9. #if 0
  10.  
  11. #ifndef    MIOC_CMD
  12. #ifdef _IO
  13. #define MIOC_CMD    _IO
  14. #else
  15. #define    MIOC_CMD(t,v)    (((t&0xFF) << 8)|(v&0xFF))
  16. #endif
  17. #endif
  18.  
  19. /*
  20.  * The following is a complete registry of ALL ioctl() command prefix bytes used
  21.  * by any Mentat Source code.  You may freely and safely change definitions here 
  22.  * as needed so as not to collide with existing ioctl() command definitions 
  23.  * on your system.
  24.  */
  25.  
  26. #define    MIOC_STREAMIO    'A'        /* Basic Stream ioctl() cmds - I_PUSH, I_LOOK, etc. */
  27. #define MIOC_TMOD        'a'        /* ioctl's for tmod test module */
  28. #define MIOC_STRLOG        'b'        /* ioctl's for Mentat's log device */
  29. #define MIOC_ND            'c'        /* ioctl's for Mentat's nd device */
  30. #define MIOC_ECHO        'd'        /* ioctl's for Mentat's echo device */
  31. #define MIOC_TLI        'e'        /* ioctl's for Mentat's timod module */
  32. /* skip 'f' -- used in SVR4 FIOxxx */
  33. #define MIOC_SAD        'g'        /* ioctl's for Mentat's sad module */
  34. #define MIOC_ARP        'h'        /* ioctl's for Mentat's arp module */
  35. #define    MIOC_HAVOC        'H'        /* Havoc module ioctls. */
  36. /* skip 'i' -- used in SVR4 SIOCxxx */
  37. #define MIOC_SIOC        'j'        /* sockio.h socket ioctl's */
  38. #define MIOC_TCP            'k'        /* tcp.h ioctl's */
  39. #define MIOC_DLPI    'l'        /* dlpi.h Sun additions */
  40. #define MIOC_SOCKETS    'm'        /* Mentat sockmod ioctl's */
  41. /* skip 'p' -- used in SVR4 */
  42. /* skip 'r' -- used in SVR4 */
  43. /* skip 's' -- used in SVR4 */
  44.  
  45. #endif
  46.  
  47. #endif    /* _MIIOCCOM_ */
  48.